package com.qf.day3;

import java.util.Scanner;

public class Score {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double score;
        double maxScore=0;
        double minScore=100.0;
        double averageValue=0;
        for (int i = 0; i < 5; i++) {
            System.out.print("请输入成绩: ");
            score = scanner.nextDouble();
            //最大值
            if(score>maxScore){
                maxScore = score;
            }
           if(score<minScore){
               minScore = score;
           }
            averageValue+=score;
        }
        averageValue/=5;
        System.out.println("最大值"+maxScore);
        System.out.println("最小值"+minScore);
        System.out.println("平均值"+averageValue);
    }
}
